import request from '@/utils/request'

// 查询证件类型列表
export function listIdentitytype(query) {
  return request({
    url: '/system/identitytype/list',
    method: 'get',
    params: query
  })
}

// 查询证件类型列表[不分页]
export function listsIdentitytype(query) {
  return request({
    url: '/system/identitytype/lists',
    method: 'get',
    params: query
  })
}

// 查询证件类型详细
export function getIdentitytype(id) {
  return request({
    url: '/system/identitytype/' + id,
    method: 'get'
  })
}

// 新增证件类型
export function addIdentitytype(data) {
  return request({
    url: '/system/identitytype',
    method: 'post',
    data: data
  })
}

// 修改证件类型
export function updateIdentitytype(data) {
  return request({
    url: '/system/identitytype',
    method: 'put',
    data: data
  })
}

// 删除证件类型
export function delIdentitytype(id) {
  return request({
    url: '/system/identitytype/' + id,
    method: 'delete'
  })
}

// 状态修改
export function changeIdentitytypeStatus(id, data) {
  return request({
    url: '/system/identitytype/changeStatus',
    method: 'put',
    data: data
  })
}
